import { hRequest } from './index'

/** 用户列表 */
export const getUserListApi = (params: any) =>
hRequest.get({
    url: "/user/list",
    params,
  });

/** 用户登录 */
export const loginApi = (data: any) =>
hRequest.post({
    url: "/user/login",
    data,
  });

/** 用户新增 */
export const loginAddApi = (data: any) =>
hRequest.post({
    url: "/user/add",
    data,
  });

/** 编辑用户 */
export const loginUpdateApi = (data: any) =>
hRequest.post({
    url: "/user/update",
    data,
  });

/** 删除用户 */
export const loginDeleteApi = (params: any) =>
hRequest.get({
    url: "/user/delete",
    params,
  });